// Copyright (C) joyinter
// All rights reserved.
// 
// Author : dengxinguo
// Date   : 2004-12-7

#ifndef __CDVERCLUEWND_H_CLIENT_MAIN__
#define __CDVERCLUEWND_H_CLIENT_MAIN__

#pragma once

#include "resource.h"
#include <common\ui\wnd.h>
#include <common\ui\button.h>
#include <common\ui\imagectrl.h>
#include <common\ui\label.h>
#include <common\ui\checkbox.h>

class CJoyCDVerClueDlg;

//##ModelId=44C4B5E60119
class CJoyCDVerClueWnd :
    public CJoyWnd
{
	DECLARE_DYNAMIC(CJoyCDVerClueWnd)
public:
	//##ModelId=44C4B5E6012A
    CJoyButton* m_btnStart;
	//##ModelId=44C4B5E6012F
    CJoyButton* m_btndownload;
	//##ModelId=44C4B5E60139
	CJoyButton* m_btnquit;


	//##ModelId=44C4B5E6013E
    CJoyCDVerClueDlg * m_Dlg;


	//##ModelId=44C4B5E60142
	CString m_cdCurrentVersion;

	//##ModelId=44C4B5E60148
	CString m_strCDRightVersion;
	//##ModelId=44C4B5E60149
	bool m_bIsStartOrStop;//true-start cd, false--stop;
   

	//##ModelId=44C4B5E6014A
    virtual void CM_Draw(Graphics& graph);
	//##ModelId=44C4B5E60159
    virtual void CM_StartClick(CJoyButton*);
	//##ModelId=44C4B5E6015C
    virtual void CM_DownLoadClick(CJoyButton*);
	//##ModelId=44C4B5E60167
	virtual void CM_QuitClick(CJoyButton*);
	//##ModelId=44C4B5E6016A
    virtual void CM_LoadSkin(CJoyXmlElement* pSkinElem);
	

public:
   

	//##ModelId=44C4B5E6016D
    CJoyCDVerClueWnd(void);
	//##ModelId=44C4B5E60178
    virtual ~CJoyCDVerClueWnd(void);

	//##ModelId=44C4B5E6017B
    void OnCancel();
public:
    DECLARE_MESSAGE_MAP()
	//##ModelId=44C4B5E6017C
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//##ModelId=44C4B5E60188
    afx_msg LRESULT OnNcHitTest(CPoint point);
	//##ModelId=44C4B5E6018B
    afx_msg void OnDestroy();
   
};

//##ModelId=44C4B5E60196
class CJoyCDVerClueDlg : public CDialog
{
	DECLARE_DYNAMIC(CJoyCDVerClueDlg)

protected:
  

public:

	//##ModelId=44C4B5E601A7
	CJoyCDVerClueWnd  m_ClueWnd;
	//##ModelId=44C4B5E601AB
	CJoyCDVerClueDlg(CWnd* pParent);   // standard constructor
	//##ModelId=44C4B5E601B5
	virtual ~CJoyCDVerClueDlg();
	//##ModelId=44C4B5E601B8
	CJoyRoomPage *m_wnd;
  

// Dialog Data
	enum { IDD = IDD_JOYSETTINGDLG };

protected:
	//##ModelId=44C4B5E601BC
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	//##ModelId=44C4B5E601C5
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//##ModelId=44C4B5E601C8
    afx_msg void OnSize(UINT nType, int cx, int cy);
	//##ModelId=44C4B5E601D5
    afx_msg LRESULT OnNcHitTest(CPoint point);
	//##ModelId=44C4B5E601D8
    afx_msg void OnClose();
};


#endif  // __CDVERCLUEWND_H_CLIENT_MAIN__
